package com.hqhsc.module.front.activity.domain;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class VoteRowMapper implements RowMapper<Vote>{
	public Vote mapRow(ResultSet rs, int arg1) throws SQLException {
        Vote vote=new Vote();

        vote.setId(rs.getInt("id"));
        vote.setActivity_id(rs.getLong("activity_id"));
        vote.setUser_name(rs.getString("user_name"));
        vote.setDn(rs.getString("dn"));
        vote.setSchool_name(rs.getString("school_name"));
        vote.setPic_url(rs.getString("pic_url"));
        vote.setProduct_name(rs.getString("product_name"));
        vote.setProduct_desc(rs.getString("product_desc"));
        vote.setVote_num(rs.getInt("vote_num"));
        vote.setStatus(rs.getInt("status"));

		return vote;
	}
}
